<!--
  描述：产品组详情页
  @author tanghongjun
  @since 2020-08-19 11:18:36
-->
<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">

<head th:include="common/common :: jscss">
    <title>新增或编辑分类</title>
</head>
<body>

<div class="layui-fluid">

    <div class="layui-card">
        <form method="post" action="" class="layui-form" lay-filter="zmn-form">

            <input type="hidden" name="relateId" th:value="${productBusinessLine.relateId}"/>
            <div class="layui-split">&nbsp;</div>

            <div class="layui-form-item">
                <label class="layui-form-label layui-form-required">业务类型：</label>
                <div class="layui-input-block">
                    <input th:each="bizType:${bizTypeList}" type="radio" name="bizType"
                           th:value="${bizType.key}" th:disabled="${productBusinessLine.relateId!=null && productBusinessLine.relateId>0}"
                           th:checked="${bizType.key == productBusinessLine.bizType}"
                           th:title="${bizType.value}" lay-verify="required">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label layui-form-required">名称：</label>
                <div class="layui-input-inline">
                    <div class="layui-input-inline" style="width: 250px">
                        <input type="text" name="name" th:value="${productBusinessLine.name}" placeholder="名称"
                               lay-verify="required"
                               autocomplete="off" class="layui-input" maxlength="50"/>
                    </div>
                </div>
            </div>
            <div class="layui-split">&nbsp;</div>
            <div class="layui-form-item layui-layout-admin">
                <div class="layui-input-block">
                    <div class="layui-footer" style="left: 0;">
                        <button class="layui-btn" lay-submit="" lay-filter="zmn-form-submit"
                                th:if="${#authPermit.checkPermit('/product/businessline/addEdit.action')}">保存
                        </button>
                        <button class="layui-btn layui-btn-primary" onclick="cancel()" id="cancleBtn">
                            取消
                        </button>
                    </div>
                </div>
            </div>

        </form>

    </div>

</div>

<script type="text/javascript" th:inline="javascript">

    var json = {
        productBusinessLine: [[${productBusinessLine}]]
    };

    layui.config({
        base: "/static/lay/",
        version: "202008201436"
    }).extend({
        index: "lib/index",
        plat_businessline_detail: "product/businessline/zmn.plat.businessline.edit",
    }).use(['index', 'plat_businessline_detail']);

</script>
</body>
</html>